/* 导航栏基础样式 */
.navbar {
  background-color: #FFFFFF;
  border-bottom: 1px solid #E2E8F0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  padding: 0.5rem 0;
  min-height: 64px;
  position: relative;
}

/* 滚动按钮样式 */
button[aria-label='Scroll left'],
button[aria-label='Scroll right'] {
  border: none;
  cursor: pointer;
  z-index: 10;
}

/* 导航项容器样式 */
.md\:flex.overflow-x-auto {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.md\:flex.overflow-x-auto::-webkit-scrollbar {
  display: none;
}

/* 滚动进度指示器 */
.progress-indicator {
  height: 2px;
  background-color: #E2E8F0;
  width: 100%;
  position: absolute;
  bottom: 0;
  left: 0;
}

.progress-indicator-fill {
  height: 100%;
  background-color: #4299E1;
  transition: width 0.2s ease;
}

/* 优化导航栏显示 - 确保所有项可见 */
@media (min-width: 768px) {
  .md\:flex {
    justify-content: flex-start;
    padding: 0.5rem 1rem;
  }
}

/* 大屏幕居中显示 */
@media (min-width: 1200px) {
  .md\:flex {
    justify-content: center;
  }
}

/* 中等屏幕优化 */
@media (max-width: 992px) {
  .space-x-8 {
    gap: 16px;
  }
}

/* 小屏幕优化 */
@media (max-width: 768px) {
  .space-x-8 {
    gap: 12px;
  }
  .text-sm {
    font-size: 13px;
  }
}

/* 极小屏幕优化 */
@media (max-width: 640px) {
  .space-x-8 {
    gap: 10px;
  }
  .text-sm {
    font-size: 12px;
  }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
  .space-x-8 {
    gap: 8px;
  }
  .text-sm {
    font-size: 11px;
  }
  .navbar {
    padding: 0.3rem 0;
  }
}

/* 容器样式 */
.container {
  width: 100%;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

/* 内外边距 */
.px-4 {
  padding-left: 16px;
  padding-right: 16px;
}

/* 弹性布局 */
.flex {
  display: flex;
}

.justify-between {
  justify-content: space-between;
}

.items-center {
  align-items: center;
}

.h-16 {
  height: 64px;
}

/* Logo样式 */
.flex-shrink-0 {
  flex-shrink: 0;
}

.text-xl {
  font-size: 20px;
  line-height: 28px;
}

.font-bold {
  font-weight: 700;
}

.text-blue-600 {
  color: #2B6CB0;
}

/* 桌面导航 */
.hidden {
  display: none;
}

.md\:flex {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  width: 100%;
  box-sizing: border-box;
}

.md\:flex::-webkit-scrollbar {
  display: none;
}

.space-x-8 {
  gap: 16px;
}

/* 导航项样式 */
.space-x-2 {
  gap: 8px;
}

.px-1 {
  padding-left: 4px;
  padding-right: 4px;
}

.py-2 {
  padding-top: 8px;
  padding-bottom: 8px;
}

.text-sm {
  font-size: 14px;
  line-height: 20px;
}

/* 小屏幕导航项字体优化 */
@media (max-width: 576px) {
  .text-sm {
    font-size: 13px;
  }
  .space-x-2 {
    gap: 6px;
  }
}

.font-medium {
  font-weight: 500;
}

.rounded-md {
  border-radius: 8px;
}

.transition-colors {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.duration-200 {
  transition-duration: 200ms;
}

.text-gray-600 {
  color: #718096;
}

.hover\:text-blue-500:hover {
  color: #4299E1;
}

/* 移动端菜单按钮 */
.md\:hidden {
  display: block;
}

.p-2 {
  padding: 8px;
}

.hover\:bg-gray-100:hover {
  background-color: #F7FAFC;
}

.focus\:outline-none:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.focus\:ring-2:focus {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8), 0 0 0 4px rgba(66, 153, 225, 0.6);
}

.focus\:ring-inset:focus {
  box-shadow: inset 0 0 0 2px;
}

.focus\:ring-blue-500:focus {
  --tw-ring-opacity: 1;
  box-shadow: 0 0 0 2px rgba(66, 153, 225, var(--tw-ring-opacity));
}

/* 移动端导航 */
.border-t {
  border-top: 1px solid #E2E8F0;
}

.px-2 {
  padding-left: 8px;
  padding-right: 8px;
}

.pt-2 {
  padding-top: 8px;
}

.pb-3 {
  padding-bottom: 12px;
}

.space-y-1 {
  gap: 4px;
}

.sm\:px-3 {
  padding-left: 12px;
  padding-right: 12px;
}

.block {
  display: block;
}

.space-x-3 {
  gap: 12px;
}

.px-3 {
  padding-left: 12px;
  padding-right: 12px;
}

.text-base {
  font-size: 16px;
  line-height: 24px;
}

.bg-blue-50 {
  background-color: #EBF8FF;
}

.hover\:bg-gray-50:hover {
  background-color: #FAFAFA;
}

/* 链接样式重置 */
a {
  text-decoration: none;
}